package xyz.zyl2020.juc.thread;

/**
 * @author ZhuYinglong
 * @date 2020/10/7 0007
 */
public class ThreadDemo2 implements Runnable {
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        ThreadDemo2 threadDemo2 = new ThreadDemo2();
        new Thread(threadDemo2).start();
        new Thread(threadDemo2, "myThread").start();
    }
}
